#!/usr/bin/env /Library/ringojs/bin/ringo

/**
 * @fileoverview
 * Run google's linter on the application source code and print the results
 * to STDOUT.
 */

var skipFiles = [
  'alltests.js',
  'dkpoints-deps.js',
  'soyutils_usegoog.js',
  'auth_templates.js',
  'errors_templates.js',
  'labs_templates.js',
  'menu_templates.js',
  'raid_templates.js',
  'standings_templates.js',
  'status_templates.js',
  'tests_templates.js',
  'raid_member_list_templates.js'
];

// The -x flag has to have a comma before the first filename or else it won't
// actually skip that file.
var cmd = 'gjslint --strict --summary -x=",' + skipFiles.join(',') + '," ' +
    '-r dkpoints';

require('ringo/subprocess').system(cmd);
